<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>欢迎您来到辕古游戏平台~</title>
    <link rel="stylesheet" href="{{asset('bootstrap.min.css')}}">
    <link rel="stylesheet" href="{{asset('bootstrap-theme.min.css')}}">
    <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
    <script src="{{asset('/jquery.js')}}"></script>
    <!-- Include all compiled plugins (below), or include individual files as needed -->
    <script src="{{asset('/bootstrap.min.js')}}"></script>
</head>
<body>
@include('index.navtest')
<!-- Main component for a primary marketing message or call to action -->
<div id="carousel-example-generic" class="carousel slide" data-ride="carousel" style="text-align: center">
    <!-- Indicators -->


    <!-- Wrapper for slides -->
    <div class="carousel-inner" role="listbox">
        <div class="item active">
            <img src="{{asset('/images/444.jpg')}}" style="width: 100%">
        </div>
    </div>
    <!-- Controls -->

</div>
<div class="container">
    <div class="col-md-7">
        <div class="page-header">
            <h3><span class="glyphicon glyphicon-thumbs-up" style="color: red;"></span> 游戏公告 <small><a href="/adList.html" style="color: gray"> more<span class="glyphicon glyphicon-menu-right"></span> </a></small></h3>
        </div>
        <div style="height:50px; background-color: #424242;"></div>
        <br>
        <h4 style="color: #000099; text-align: center"><span class="glyphicon glyphicon-grain" style="color: red"></span> <a href="/adsInfo/{{$adFirst->ad_id}}.html" style="color: #000099;">[最新公告]&nbsp {{$adFirst->ad_name}}</a></h4>
        <br>
        <div class="list-group">
            @foreach($adData as $data)
                <a href="/adsInfo/{{$data->ad_id}}.html" class="list-group-item"><span class="badge">{{$data->ad_time}}</span><span class="glyphicon glyphicon-triangle-right" style="color: red"></span> [公告]&nbsp{{$data->ad_name}}</a>
            @endforeach
        </div>
    </div>
    <div class="col-md-5">
        <br><br>
        <img src="{{asset('/zc1.jpg')}}" style="width: 445px">
        <br><p></p>
        <img src="{{asset('/cz.jpg')}}" style="width: 445px">
        <br><p></p>

        <div class="page-header">
            <h3><span class="glyphicon glyphicon-exclamation-sign" style="color: red;"></span> 游戏攻略 <small><a href="/gameGLList.html" style="color: gray"> more<span class="glyphicon glyphicon-menu-right"></span> </a></small></h3>
        </div>
        <div class="list-group">
            @foreach($glData as $gl_v)
            <a href="/gameGLInfo/{{$gl_v->game_gl_id}}.html" class="list-group-item"><span class="badge">{{$gl_v->game_gl_time}}</span><span class="glyphicon glyphicon-triangle-right" style="color: red"></span> [游戏攻略] &nbsp;{{$gl_v->game_gl_name}}</a>
            @endforeach
        </div>
    </div>
    <div class="container">
        <div class="page-header">
            <div class="form-inline">
                <div class="form-group">
                    <h3><span class="glyphicon glyphicon-globe" style="color: red;"></span> 游戏截图 <small><a href="/gameJPGList.html" style="color: gray"> more<span class="glyphicon glyphicon-menu-right"></span> </a></small></h3>
                </div>
                <div class="form-group pull-right">
                    <br><p></p>
                    <button type="button" class="btn btn-link  btn-sm" data-toggle="modal" data-target="#addgameJPG">上传截图</button>
                </div>
            </div>
        </div>
        <div class="modal fade" id="addgameJPG" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
            <div class="modal-dialog ">
                <div class="modal-content">
                    <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
                        <h4 class="modal-title" id="myModalLabel">上传游戏截图</h4>
                    </div>
                    <div class="modal-body">
                        <form enctype="multipart/form-data" class="form-horizontal" role="form" action="/addGameJPG" method="post">
                            <input type="hidden" name="_token" value="{{ csrf_token() }}">
                            <h5>截图名称</h5>
                            <input type="text"  name="game_jpg_name" class="form-control" placeholder="截图名称"  required autofocus><br>
                            <h5>上传截图</h5>
                            <input name="files" type="file">
                            <br>
                    </div>
                    <div class="modal-footer">
                        <button type="submit" class="btn btn-primary">上传申请</button>
                        <button type="button" class="btn btn-default" data-dismiss="modal">返回</button>
                        </form>
                    </div>
                </div>
            </div>
        </div>
        <div class="row">
            @foreach($gameJPGs as $gameJPG_v)
            <div class="col-xs-6 col-md-3">
                <a href="/gameJPGsInfo/{{$gameJPG_v->game_jpg_id}}.html" class="img-rounded">
                    <img src="{{$gameJPG_v->game_jpg_address}}" alt="..." style="width: 280px; height: 160px">
                </a>
                <br><br>
                <p style="text-align: center">{{$gameJPG_v->game_jpg_name}}</p>
            </div>
            @endforeach
        </div>
        <div class="page-header">
            <div class="form-inline">
                <div class="form-group">
                    <h3><span class="glyphicon glyphicon-user" style="color: red;"></span> 玩家靓照 <small><a href="/userJPGList.html" style="color: gray"> more<span class="glyphicon glyphicon-menu-right"></span> </a></small></h3>
                </div>
                <div class="form-group pull-right">
                    <br><p></p>
                    <button type="button" class="btn btn-link  btn-sm" data-toggle="modal" data-target="#addUserJPG">上传靓照</button>
                </div>
            </div>
        </div>
        <div class="modal fade " id="addUserJPG" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
            <div class="modal-dialog ">
                <div class="modal-content">
                    <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
                        <h4 class="modal-title" id="myModalLabel">上传靓照</h4>
                    </div>
                    <div class="modal-body">
                        <form enctype="multipart/form-data" class="form-horizontal" role="form" action="/addUserJPG" method="post">
                            <input type="hidden" name="_token" value="{{ csrf_token() }}">
                            <h5>靓照名称</h5>
                            <input type="text"  name="user_jpg_name" class="form-control" placeholder="靓照名称"  required autofocus><br>
                            <h5>上传靓照</h5>
                            <input name="files" type="file">
                            <br>
                    </div>
                    <div class="modal-footer">
                        <button type="submit" class="btn btn-primary">上传申请</button>
                        <button type="button" class="btn btn-default" data-dismiss="modal">返回</button>
                        </form>
                    </div>
                </div>
            </div>
        </div>
        <div class="row" style="text-align: center">
            @foreach($userJPGs as $userJPG_v)
                <div class="col-xs-6 col-md-3">
                    <a href="/userJPGsInfo/{{$userJPG_v->user_jpg_id}}.html" class="img-rounded">
                        <img src="{{$userJPG_v->user_jpg_address}}" alt="..." style="width: 220px; height: 296px">
                    </a>
                    <br><br>
                    <p style="text-align: center">{{$userJPG_v->user_jpg_name}}</p>
                </div>
            @endforeach
        </div>
    </div>
    <br>

    <div class="col-md-6">
        <div style="height:60px;width: 580px; background-color: #424242;text-align: center">
            <div class="form-inline">
                <div class="form-group">
                    <br>
                    <p style="color: #9e9e9e; font-size: 20px"><a href="/userExpList.html">经验心得</a></p>
                </div>
                <div class="form-group pull-right">
                    <br><p></p>
                    <button type="button" class="btn btn-link  btn-sm" data-toggle="modal" data-target="#addEXP">分享心得</button>
                </div>
            </div>
        </div>
        <div class="modal fade bs-example-modal-lg" id="addEXP" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
            <div class="modal-dialog modal-lg">
                <div class="modal-content">
                    <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
                        <h4 class="modal-title" id="myModalLabel">分享心得</h4>
                    </div>
                    <div class="modal-body">
                        <form action="/addEXP" method="post">
                            <input type="hidden" name="_token" value="{{ csrf_token() }}">
                            <h5>心得标题</h5>
                            <input type="text"  name="user_exp_name" class="form-control" placeholder="心得标题"  required autofocus><br>
                            <h5>心得内容</h5>
                            <div id="editor"></div>
                            <input  name="user_exp_info" id="text1"  type="hidden"  readonly>
                            <!-- 注意， 只需要引用 JS，无需引用任何 CSS ！！！-->
                            <script type="text/javascript" src="{{asset('/wangEditor.min.js')}}"></script>
                            <script type="text/javascript" >
                                var E = window.wangEditor
                                var editor = new E('#editor')
                                // 或者 var editor = new E( document.getElementById('editor') )
                                var $text1 = $('#text1')
                                editor.customConfig.onchange = function (html) {
                                    // 监控变化，同步更新到 textarea
                                    $text1.val(html)
                                }
                                editor.customConfig.uploadImgShowBase64 = true   // 使用 base64 保存图片

                                editor.customConfig.showLinkImg = false
                                editor.customConfig.debug = location.href.indexOf('wangeditor_debug_mode=1') > 0
                                editor.create()
                                // 初始化 textarea 的值
                                $text1.val(editor.txt.html())
                            </script>
                            <br>
                    </div>
                    <div class="modal-footer">
                        <button type="submit" class="btn btn-primary">分享申请</button>
                        <button type="button" class="btn btn-default" data-dismiss="modal">返回</button>
                        </form>
                    </div>
                </div>
            </div>
        </div>
        <div  style="height:180px;width: 580px;">
            @foreach($expData as $exp_v)
            <a href="/userExpInfo/{{$exp_v->user_exp_id}}.html" class="list-group-item"><span class="badge">{{$exp_v->user_exp_time}}</span><span class="glyphicon glyphicon-triangle-right" style="color: red"></span> [经验心得] &nbsp;{{$exp_v->user_exp_name}}</a>
            @endforeach
        </div>
    </div>
    <div class="col-md-6 navbar-right" >
        <div  style="height:60px;width: 580px; background-color: #424242;text-align: center">
            <div class="form-inline">
                <div class="form-group">
                    <br>
                    <p style="color: #9e9e9e; font-size: 20px"><a href="/userArticleList.html">精彩文章</a></p>
                </div>
                <div class="form-group pull-right">
                    <br><p></p>
                    <button type="button" class="btn btn-link  btn-sm" data-toggle="modal" data-target="#addArticle">分享文章</button>
                </div>
            </div>
        </div>
        <div class="modal fade bs-example-modal-lg" id="addArticle" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
            <div class="modal-dialog modal-lg">
                <div class="modal-content">
                    <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
                        <h4 class="modal-title" id="myModalLabel">分享文章</h4>
                    </div>
                    <div class="modal-body">
                        <form action="/addArticle" method="post">
                            <input type="hidden" name="_token" value="{{ csrf_token() }}">
                            <h5>文章标题</h5>
                            <input type="text"  name="user_article_name" class="form-control" placeholder="文章标题"  required autofocus><br>
                            <h5>文章内容</h5>
                            <div id="editor2"></div>
                            <input  name="user_article_info" id="text2"  type="hidden"  readonly>
                            <!-- 注意， 只需要引用 JS，无需引用任何 CSS ！！！-->
                            <script type="text/javascript" src="{{asset('/wangEditor.min.js')}}"></script>
                            <script type="text/javascript" >
                                var E = window.wangEditor
                                var editor = new E('#editor2')
                                // 或者 var editor = new E( document.getElementById('editor') )
                                var $text2 = $('#text2')
                                editor.customConfig.onchange = function (html2) {
                                    // 监控变化，同步更新到 textarea
                                    $text2.val(html2)
                                }
                                editor.customConfig.uploadImgShowBase64 = true   // 使用 base64 保存图片

                                editor.customConfig.showLinkImg = false
                                editor.customConfig.debug = location.href.indexOf('wangeditor_debug_mode=1') > 0
                                editor.create()
                                // 初始化 textarea 的值
                                $text2.val(editor.txt.html())
                            </script>
                            <br>
                    </div>
                    <div class="modal-footer">
                        <button type="submit" class="btn btn-primary">分享申请</button>
                        <button type="button" class="btn btn-default" data-dismiss="modal">返回</button>
                        </form>
                    </div>
                </div>
            </div>
        </div>
        <div  style="height:180px;width: 580px;">
            @foreach($articleData as $article_v)
            <a href="/userArticleInfo/{{$article_v->user_article_id}}.html" class="list-group-item"><span class="badge">{{$article_v->user_article_time}}</span><span class="glyphicon glyphicon-triangle-right" style="color: red"></span> [精彩文章] &nbsp;{{$article_v->user_article_name}}</a>
            @endforeach
        </div>
    </div>
    <br>

        <img src="{{asset('/1180s.jpg')}}">

</div>



@include('index.footer')

</body>
</html>

